/**
 * Created by renzhiqiang on 18/7/4.
 */
import {request,getJson} from '../../utils/request';
import {CADILLAC_URL} from '../../utils/constants';
import {pageParams,paramSny} from '../../utils';

/** 菜单-列表查询
 * author renzhiqiang
 * timer 2018-4-18
 */
export function fetch(params) {
  return require("./../../../json/list").list;
  return request((params.configPage.url||"")+"?page="+ pageParams(params.pageParam) + paramSny(params.filterData))
}
/** 菜单-删除接口
 * author renzhiqiang
 * timer 2018-4-18
 */
export function del(id) {
  return request(CADILLAC_URL+'/menu/v1/delete?menuId=' +id);
}


/** 获取详情接口
 * author renzhiqiang
 * timer 2018-4-18
 */
export function fetchDetail(id) {
  return require("./../../../json/list").detail;
  return getJson(CADILLAC_URL+'/menu/v1/delete?menuId=' +id);
}


/** 获取下拉框接口
 * author renzhiqiang
 * timer 2018-4-18
 */
export function fetchCountry(id) {
  return require("./../../../json/list").select;
  return getJson(CADILLAC_URL+'/menu/v1/delete?menuId=' +id);
}
